package com.zatech.cgnci.project.dto;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author EDY
 * @version 1.0
 * Create by 2024/12/19 15:14
 */
@Data
public class FileUploadDTO {
    /**
     * 附件
     */
    @NotNull(message = "附件不能为空")
    @JSONField(serialize = false)
    @ApiModelProperty(value = "附件", name = "file", required = true, dataType = "MultipartFile")
    private MultipartFile file;


    /**
     * 文件类型
     */
    @NotBlank(message = "文件类型不能为空")
    @ApiModelProperty(value = "文件类型", name = "accType", required = true, dataType = "String")
    private String accType;


    /**
     * 上传节点
     */
    @NotBlank(message = "上传节点不能为空")
    @ApiModelProperty(value = "上传节点", name = "uploadNode", dataType = "String")
    private String uploadNode;

}
